#pragma once

namespace codewar {

class ASum
{
	public:
	static long long findNb(long long m){
		long long  count = 0;
		while( m > 0 ){
			count++;
			m -= count * count * count;
		}

		return m == 0 ? count : -1;
	}
};

}

